<template>
  <div class="homeSearchBar">
    <div class="left">

      <div class="top">
        <span class="text">住</span>
        <span class="startDate">07.25</span>
      </div>

      <div class="bottom">
        <span class="text">离</span>
        <span class="endDate">07.26</span>
      </div>

    </div>

    <div class="searchInput">
      <input type="text" placeholder="关键字/位置/民宿">
    </div>

    <div class="icon">搜索</div>

  </div>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue'

</script>

<style scoped lang="less">
.homeSearchBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #eee;
  // 防止后面定位元素遮挡
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;

  .left {
    .text {
      color: #333;
      margin-right: 5px;
    }
  }

  .searchInput {
    height: 100%;
    flex: 1;
    margin: 0 5px;

    input {
      width: 100%;
      height: 100%;
      border: none;
    }
  }
}
</style>
